class Airways < ActiveRecord::Base
  has_many :positions, :order=>"discount"
  has_many :zjly_prices 
  has_many :web_price_releases
  has_many :policies
  
  def self.find_by_code(code)
    return Airways.find(:first,:conditions=>["airways_code=?",code])
  end
  
end
